import request from '@/utils/request'

// 项目变更详情
export function http_project_changesDetail(params = {}) {
    return request({
        url: '/project/project/changeDetail',
        method: 'get',
        params
    })
}

// 查询项目详细信息
export function http_project_Detail(params = {}) {
    return request({
        url: '/project/getProjectInfo',
        method: 'get',
        params
    })
}

// 查询项目节点信息
export function http_project_nodes(params = {}) {
    return request({
        url: '/project/editProjectInit',
        method: 'get',
        params
    })
}

// 项目变更提交
export function http_project_update(data = {}) {
    return request({
        url: '/project/change',
        method: 'post',
        data
    })
}

// 根据时间区间获取工作日
export function http_workDay(params = {}) {
    return request({
        url: '/project/getWorkDay',
        method: 'get',
        params
    })
}

// 将审批提交给钉钉
export function http_saveDING(data = {}) {
    return request({
        url: '/project/save/dingding/change',
        method: 'post',
        data
    })
}